package com.etc.test;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.etc.entity.HistoryInfo;
import com.etc.entity.MedicalHistory;
import com.etc.entity.OrderInfo;
import com.etc.entity.Patient;
import com.etc.service.OrderInfoService;
import com.etc.service.PatientService;

/**
 * 病人测试类
 * 
 * @author 小白
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml", "classpath:mybatis-config.xml" })
public class OrderInfoTestJUnit {
	@Autowired
	private OrderInfoService orderInfoService;
	
	@Test
	public void selOrderInfoByTel() {
		List<OrderInfo> list = orderInfoService.selOrderInfoByTel("15268794562");
		System.out.println(list.size());
	}
	
	@Test
	public void delOrderInfoByTime() {
		boolean flag = orderInfoService.delOrderByTime("15268794562","2018-11-15 14:41:36");
		System.out.println(flag);
	}

}
